﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace SageKing.MediatR.Features;

public class NatashaFeature : FeatureBase
{
    public NatashaFeature(IModule module) : base(module)
    {
    }


    /// <inheritdoc />
    public override void Apply(IConfigurationManager configurationManager, IHostEnvironment hostEnvironment)
    {
        NatashaManagement
            //获取链式构造器
            .GetInitializer()
            //使用引用程序集中的命名空间
            .WithMemoryUsing()
            //使用内存中的元数据
            .WithMemoryReference()
            //注册域构造器
            .Preheating<NatashaDomainCreator>();
    }
}
